<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="isemirhareket" styleClass="edit">

        <rich:panel>
            <f:facet name="header">#{isemirhareketHome.managed ? 'Edit' : 'Add'} Isemirhareket</f:facet>

            <a:region> 			
		        <h:panelGrid>
			        	<rich:extendedDataTable rows="10" value="#{isemirhareketHome.isemirsDataModel}" var="isemir" id="table3" width="1130px" height="170px"
			        		sortMode="#{isemirhareketHome.sortMode3}" selectionMode="#{isemirhareketHome.selectionMode3}" 
			        		tableState="#{isemirhareketHome.tableState3}" selection="#{isemirhareketHome.selection3}">
			        		
			        	   	<a:support event="onselectionchange" reRender="ggg1,islemPanel,isemirByVirmanisemiridTable,seciliUrunBilgisi2,extendedDataTableField2,popupMalzeme,popup,urunListesi,malzemeListesi,save,update" action="#{isemirhareketHome.takeSelection3()}"/>
			               	
			               	<rich:column sortable="true" sortBy="#{isemir.isemirno}" id="col_33" 
			               		filterBy="#{isemir.isemirno}" filterEvent="onkeyup" width="100px" label="İş Emir No">
			                   	<f:facet name="header">
			                    	<h:outputText value="İş Emir No" id="state_capital3"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.isemirno}" id="cap_name32"/>
			               	</rich:column>
			               	
			               	<rich:column sortable="true" sortBy="#{isemir.isemirtarihi}" id="col_34" 
			               		filterBy="#{isemir.isemirtarihi}" filterEvent="onkeyup" width="100px" label="İş Emir Tarihi">
			                   	<f:facet name="header">
			                    	<h:outputText value="İş Emir Tarihi" id="state_capital34"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.isemirtarihi}" id="cap_name34"/>
			               	</rich:column>

			               	<rich:column sortable="true" sortBy="#{isemir.siparisno}" id="col_36" 
			               		filterBy="#{isemir.siparisno}" filterEvent="onkeyup" width="150px" label="Sipariş No">
			                   	<f:facet name="header">
			                    	<h:outputText value="Sipariş No" id="state_capital36"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.siparisno}" id="cap_name36"/>
			               	</rich:column>

			               	<rich:column sortable="true" sortBy="#{isemir.urun.urunno}" id="col_37" 
			               		filterBy="#{isemir.urun.urunno}" filterEvent="onkeyup" width="330px" label="Ürün No">
			                   	<f:facet name="header">
			                    	<h:outputText value="Ürün No" id="state_capital37"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.urun.urunno} - #{isemir.urun.adi} ( #{isemir.urun.kalip.kod} #{isemir.urun.ambalaj})" id="cap_name37"/>
			               	</rich:column>
			               	

			               	<rich:column sortable="true" sortBy="#{isemir.musteri.ad}" id="col_38" 
			               		filterBy="#{isemir.musteri.ad}" filterEvent="onkeyup" width="150px" label="Müşteri Adı">
			                   	<f:facet name="header">
			                    	<h:outputText value="Müşteri Adı" id="state_capital38"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.musteri.ad}" id="cap_name38"/>
			               	</rich:column>
			               	
							<rich:column sortable="true" sortBy="#{isemir.planlananadet}" id="col_39" 
			               		filterBy="#{isemir.planlananadet}" filterEvent="onkeyup" width="100px" label="Planlanan Adet">
			                   	<f:facet name="header">
			                    	<h:outputText value="Planlanan Adet" id="state_capital39"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.planlananadet}" id="cap_name39"/>
			               	</rich:column>

							<rich:column sortable="true" sortBy="#{isemir.termintarihi}" id="col_40" 
			               		filterBy="#{isemir.termintarihi}" filterEvent="onkeyup" width="100px" label="Termin Tarihi">
			                   	<f:facet name="header">
			                    	<h:outputText value="Termin Tarihi" id="state_capital40"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.termintarihi}" id="cap_name40"/>
			               	</rich:column>	
			               	
			               	<rich:column sortable="true" sortBy="#{isemir.ulke.ad}" id="col_41"
			               		filterBy="#{isemir.ulke.ad}" filterEvent="onkeyup" width="100px" label="Ülke">
			                   	<f:facet name="header">
			                    	<h:outputText value="Ülke" id="state_capital41"/>
			                   	</f:facet> 
			                   	<h:outputText value="#{isemir.ulke.ad}" id="cap_name41"/>
			               	</rich:column>				                

			               			               	
			           	</rich:extendedDataTable>
			           	
		           <rich:datascroller for="table2" maxPages="5"/>
		        </h:panelGrid>
	        </a:region>
	        			
			<a:outputPanel ajaxRendered="true">
				<rich:panel id="islemPanel" rendered="#{isemirhareketHome.instance.isemirByIsemirid != null}">
					<rich:layout>
		              	<rich:layoutPanel position="left">
				            <a:region>
					            <s:decorate id="secim" template="layout/edit.xhtml">
					            	<ui:define name="label">Hareket Cinsi</ui:define>
					            	<h:selectOneMenu id="radio" value="#{isemirhareketHome.hareketCinsi}" label="Seçim Yapınız" layout="lineDirection">
					                     <f:selectItem itemLabel="Ürün" itemValue="urun"/>      
					                     <f:selectItem itemLabel="Malzeme" itemValue="malzeme" />
					                     <f:selectItem itemLabel="İşemir Ürün" itemValue="isemirurun" />
					                     <a:support event="onclick" reRender="extendedDataTableField1,extendedDataTableField2" />
					                 </h:selectOneMenu>
								</s:decorate>								
				            </a:region>
					
							<a:outputPanel ajaxRendered="true">
					            <s:decorate id="extendedDataTableField1" template="layout/edit.xhtml" rendered="#{isemirhareketHome.hareketCinsi=='urun'}">
					                <ui:define name="label">Ürün</ui:define>
					                	<h:panelGrid columns="3">
											<h:panelGroup>
												<h:graphicImage id="link1" value="/img/selection.png" styleClass="hidelink"/>
					             				<rich:componentControl for="popup" attachTo="link1" operation="show" event="onclick"/>
										    </h:panelGroup>
								     	
								     		<h:outputLabel value="   " /> 
								     			
						                	<h:outputLabel value="#{isemirhareketHome.instance.isemirurun==null ? 'Ürün Seç' : isemirhareketHome.instance.isemirurun.urun.adi}   #{isemirhareketHome.instance.isemirurun.urun==null ? ' ' : isemirhareketHome.instance.isemirurun.urun.ambalaj}  #{isemirhareketHome.instance.isemirurun.urun==null ? ' ' : ' (Toplam Miktar : ' }  #{isemirhareketHome.instance.isemirurun.urun==null ? ' ' :  isemirhareketHome.instance.isemirurun.toplammiktar} #{isemirhareketHome.instance.isemirurun.urun==null ? ' ' : ')'}" />
						                </h:panelGrid>
					            </s:decorate>
					
					             <s:decorate id="extendedDataTableField2" template="layout/edit.xhtml" rendered="#{isemirhareketHome.hareketCinsi=='malzeme'}">
					                <ui:define name="label">Malzeme</ui:define>
					                	<h:panelGrid columns="3">
											<h:panelGroup>
												<h:graphicImage id="link2" value="/img/selection.png" styleClass="hidelink"/>
					              				<rich:componentControl for="popupMalzeme" attachTo="link2" operation="show" event="onclick"/>
										    </h:panelGroup>
								     		<h:outputLabel value="   " /> 
						                	<h:outputLabel value="#{isemirhareketHome.instance.isemirmalzeme==null ? 'Malzeme Seç' : isemirhareketHome.instance.isemirmalzeme.malzeme.ad}   #{isemirhareketHome.instance.isemirmalzeme.malzeme==null ? ' ' : isemirhareketHome.instance.isemirmalzeme.malzeme.kod}" />
						                </h:panelGrid>
					            </s:decorate>
							</a:outputPanel>    
						</rich:layoutPanel>
						
		 
		              	<rich:layoutPanel position="center">     
		
				            <s:decorate id="grupField" template="layout/edit.xhtml">
				                <ui:define name="label">Hareket Türü</ui:define>
						      	<h:selectOneMenu  width="250" value="#{isemirhareketHome.instance.harekettur}" required="true">
									<s:selectItems value="#{hareketturList.resultList}" var="ind" label="#{ind.ad}" noSelectionLabel="Seçim Yapınız!"  />
									<a:support event="onClick" reRender="isemirByVirmanisemiridTab"/>
									<s:convertEntity />
								</h:selectOneMenu>
							</s:decorate>
				
				
				            <s:decorate id="miktarField" template="layout/edit.xhtml">
				                <ui:define name="label">Miktar</ui:define>
				                <h:inputText id="miktar"
				                       required="true"
				                          value="#{isemirhareketHome.instance.miktar}">
				                    <a:support event="onblur" reRender="miktarField" />
				                </h:inputText>
				            </s:decorate>
						</rich:layoutPanel>
					</rich:layout>
				</rich:panel>
			</a:outputPanel>

            <div style="clear:both">
                <span class="required">*</span>
                required fields
            </div>

        </rich:panel>

        <div class="actionButtons">

            <h:commandButton id="save"
                          value="Save"
                         action="#{isemirhareketHome.persist}"
                       disabled="#{!isemirhareketHome.wired}"
                       rendered="#{!isemirhareketHome.managed}"/>

            <h:commandButton id="update"
                          value="Save"
                         action="#{isemirhareketHome.update}"
                       rendered="#{isemirhareketHome.managed}"/>

            <h:commandButton id="delete"
                          value="Delete"
                         action="#{isemirhareketHome.remove}"
                      immediate="true"
                       rendered="#{isemirhareketHome.managed}"/>

            <s:button id="cancelEdit"
                   value="Cancel"
             propagation="end"
                    view="/Isemirhareket.xhtml"
                rendered="#{isemirhareketHome.managed}"/>

            <s:button id="cancelAdd"
                   value="Cancel"
             propagation="end"
                    view="/#{empty isemirhareketFrom ? 'IsemirhareketList' : isemirhareketFrom}.xhtml"
                rendered="#{!isemirhareketHome.managed}"/>

        </div>
    </h:form>

<rich:tabPanel switchType="ajax">
	<a:outputPanel ajaxRendered="true" id="isemirByVirmanisemiridTab">
    <rich:tab label="Isemir by virmanisemirid" rendered="#{isemirhareketHome.instance.harekettur.hareketturgrup.ad == 'Virman' }" >
    <div class="association" id="isemirByVirmanisemiridParent">

        <h:outputText value="There is no isemirByVirmanisemirid associated with this isemirhareket."
                   rendered="#{isemirhareketHome.instance.isemirByVirmanisemirid == null}"/>

        <rich:dataTable var="_isemir"
                   value="#{isemirhareketHome.instance.isemirByVirmanisemirid}"
                rendered="#{isemirhareketHome.instance.isemirByVirmanisemirid != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="isemirByVirmanisemiridTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_isemir.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Aypaciklama</f:facet>
                <h:outputText value="#{_isemir.aypaciklama}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Firma id</f:facet>
                <h:outputText value="#{_isemir.firma.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Formno</f:facet>
                <h:outputText value="#{_isemir.formno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Isemirno</f:facet>
                <h:outputText value="#{_isemir.isemirno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Isemirtarihi</f:facet>
                <h:outputText value="#{_isemir.isemirtarihi}">
                    <s:convertDateTime type="date" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Isletme id</f:facet>
                <h:outputText value="#{_isemir.isletme.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Kalipeki</f:facet>
                <h:outputText value="#{_isemir.kalipeki}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Musteri id</f:facet>
                <h:outputText value="#{_isemir.musteri.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Musterimarkalamasi</f:facet>
                <h:outputText value="#{_isemir.musterimarkalamasi}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Planlananadet</f:facet>
                <h:outputText value="#{_isemir.planlananadet}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Siparisno</f:facet>
                <h:outputText value="#{_isemir.siparisno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Termintarihi</f:facet>
                <h:outputText value="#{_isemir.termintarihi}">
                    <s:convertDateTime type="date" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Ulke id</f:facet>
                <h:outputText value="#{_isemir.ulke.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Upkaciklama</f:facet>
                <h:outputText value="#{_isemir.upkaciklama}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Uretimenotlar</f:facet>
                <h:outputText value="#{_isemir.uretimenotlar}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Urun id</f:facet>
                <h:outputText value="#{_isemir.urun.id}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{isemirhareketHome.instance.isemirByVirmanisemirid != null ? 'changeParent_4' : 'selectParent_4'}" value="#{isemirhareketHome.instance.isemirByVirmanisemirid != null ? 'Change' : 'Select'} isemirByVirmanisemirid"
                       view="/IsemirList.xhtml">
                <f:param name="from" value="IsemirhareketEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>
	</a:outputPanel>
	
    <rich:tab label="Isemirmalzeme" rendered="#{authenticator.isAdmin()}">
    <div class="association" id="isemirmalzemeParent">

        <h:outputText value="There is no isemirmalzeme associated with this isemirhareket."
                   rendered="#{isemirhareketHome.instance.isemirmalzeme == null}"/>

        <rich:dataTable var="_isemirmalzeme"
                   value="#{isemirhareketHome.instance.isemirmalzeme}"
                rendered="#{isemirhareketHome.instance.isemirmalzeme != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="isemirmalzemeTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_isemirmalzeme.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Isemir id</f:facet>
                <h:outputText value="#{_isemirmalzeme.isemir.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Makskullanimmiktari</f:facet>
                <h:outputText value="#{_isemirmalzeme.makskullanimmiktari}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Malzeme id</f:facet>
                <h:outputText value="#{_isemirmalzeme.malzeme.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Miktar</f:facet>
                <h:outputText value="#{_isemirmalzeme.miktar}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{isemirhareketHome.instance.isemirmalzeme != null ? 'changeParent_5' : 'selectParent_5'}" value="#{isemirhareketHome.instance.isemirmalzeme != null ? 'Change' : 'Select'} isemirmalzeme"
                       view="/IsemirmalzemeList.xhtml">
                <f:param name="from" value="IsemirhareketEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="Isemirurun" rendered="#{authenticator.isAdmin()}">
    <div class="association" id="isemirurunParent">

        <h:outputText value="There is no isemirurun associated with this isemirhareket."
                   rendered="#{isemirhareketHome.instance.isemirurun == null}"/>

        <rich:dataTable var="_isemirurun"
                   value="#{isemirhareketHome.instance.isemirurun}"
                rendered="#{isemirhareketHome.instance.isemirurun != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="isemirurunTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_isemirurun.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Isemir id</f:facet>
                <h:outputText value="#{_isemirurun.isemir.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Miktar</f:facet>
                <h:outputText value="#{_isemirurun.miktar}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Toplammiktar</f:facet>
                <h:outputText value="#{_isemirurun.toplammiktar}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Urun id</f:facet>
                <h:outputText value="#{_isemirurun.urun.id}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{isemirhareketHome.instance.isemirurun != null ? 'changeParent_6' : 'selectParent_6'}" value="#{isemirhareketHome.instance.isemirurun != null ? 'Change' : 'Select'} isemirurun"
                       view="/IsemirurunList.xhtml">
                <f:param name="from" value="IsemirhareketEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="Sevk *" labelClass="required" rendered="#{isemirhareketHome.instance.sevk == null || authenticator.isAdmin()}">
    <div class="association" id="sevkParent">

        <h:outputText value="There is no sevk associated with this isemirhareket."
                   rendered="#{isemirhareketHome.instance.sevk == null}"/>

        <rich:dataTable var="_sevk"
                   value="#{isemirhareketHome.instance.sevk}"
                rendered="#{isemirhareketHome.instance.sevk != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="sevkTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_sevk.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Ehliyetno</f:facet>
                <h:outputText value="#{_sevk.ehliyetno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Irsaliye tarihi</f:facet>
                <h:outputText value="#{_sevk.irsaliyeTarihi}">
                    <s:convertDateTime type="date" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Irsaliyeno</f:facet>
                <h:outputText value="#{_sevk.irsaliyeno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Plaka</f:facet>
                <h:outputText value="#{_sevk.plaka}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Ruhsatno</f:facet>
                <h:outputText value="#{_sevk.ruhsatno}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Seri</f:facet>
                <h:outputText value="#{_sevk.seri}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Sevk tarihi</f:facet>
                <h:outputText value="#{_sevk.sevkTarihi}">
                    <s:convertDateTime type="date" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Sira</f:facet>
                <h:outputText value="#{_sevk.sira}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Teslimalanadsoyad</f:facet>
                <h:outputText value="#{_sevk.teslimalanadsoyad}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Teslimedenadsoyad</f:facet>
                <h:outputText value="#{_sevk.teslimedenadsoyad}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{isemirhareketHome.instance.sevk != null ? 'changeParent_7' : 'selectParent_7'}" value="#{isemirhareketHome.instance.sevk != null ? 'Change' : 'Select'} sevk"
                       view="/SevkList.xhtml">
                <f:param name="from" value="IsemirhareketEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>
</rich:tabPanel>


	 <rich:modalPanel id="popup" width="660" height="500" resizeable="false" onmaskclick="#{rich:component('popup')}.hide()">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="İş Emri Ürün Seçimi"></h:outputText>
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
                <h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelink"/>
                <rich:componentControl for="popup" attachTo="hidelink" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
		
        <h:panelGrid id="seciliUrunBilgisi">
	        <s:decorate id="kalipekiField" template="layout/edit.xhtml">
	            <ui:define name="label">Seçili Ürün</ui:define>
	            <h:outputLabel value="#{isemirhareketHome.instance.isemirurun.urun.adi} - #{isemirhareketHome.instance.isemirurun.urun.ambalaj}"/>
	        </s:decorate>
        </h:panelGrid>        
       
        <a:form reRender="seciliUrunBilgisi">
	        <h:panelGrid id="urunListesi">
		        	<rich:extendedDataTable rows="10" value="#{isemirhareketHome.urunsDataModel}" var="isemirurun" id="table" width="630px" height="350px"
		        		sortMode="#{isemirhareketHome.sortMode}" selectionMode="#{isemirhareketHome.selectionMode}" 
		        		tableState="#{isemirhareketHome.tableState}" selection="#{isemirhareketHome.selection}">
		        	   	<a:support event="onselectionchange" reRender="seciliUrunBilgisi,extendedDataTableField1" action="#{isemirhareketHome.takeSelection()}"/>
		               	<rich:column sortable="true" sortBy="#{isemirurun.urun.urunno}" id="col_2" 
		               		filterBy="#{isemirurun.urun.urunno}" filterEvent="onkeyup" width="100px" label="Ürün No">
		                   	<f:facet name="header">
		                    	<h:outputText value="Ürün No" id="state_name"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirurun.urun.urunno}" id="cap_state"/>
		               	</rich:column>
		               	<rich:column sortable="true" sortBy="#{isemirurun.urun.adi}" id="col_3" 
		               		filterBy="#{isemirurun.urun.adi}" filterEvent="onkeyup" width="330px" label="Ürün Adı">
		                   	<f:facet name="header">
		                    	<h:outputText value="Ürün Adı" id="state_capital"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirurun.urun.adi} - #{isemirurun.urun.ambalaj}" id="cap_name"/>
		               	</rich:column>		               	
		               	<rich:column sortable="true" sortBy="#{isemirurun.toplammiktar}" id="col_4" 
		               		filterBy="#{isemirurun.toplammiktar}" filterEvent="onkeyup" width="100px" label="Toplam Miktar">
		                   	<f:facet name="header">
		                    	<h:outputText value="Toplam Miktar" id="toplammiktarouttext"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirurun.toplammiktar}" id="toplam_miktar"/>
		               	</rich:column>
		               	<rich:column sortable="true" sortBy="#{isemirurun.miktar}" id="col_5" 
		               		filterBy="#{isemirurun.miktar}" filterEvent="onkeyup" width="100px" label="Miktar">
		                   	<f:facet name="header">
		                    	<h:outputText value="Miktar" id="miktarouttext"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirurun.miktar}" id="miktar"/>
		               	</rich:column>
		           	</rich:extendedDataTable>
	           <rich:datascroller for="table" maxPages="5"/>
	        </h:panelGrid>
	        
	        <h:panelGrid columns="2" style="margin-left: 37%;" >
	        	<a:commandButton value="Tamam" style=" width : 60px;" action="#{isemirhareketHome.takeSelection()}" reRender="seciliUrunBilgisi,extendedDataTableField1,Isemirurun,Isemirmalzeme,save,update" onclick="#{rich:component('popup')}.hide()"/>
	        	<a:commandButton value="İptal" style=" width : 60px;" action="#{isemirhareketHome.clearSelectedUrun()}" reRender="seciliUrunBilgisi,extendedDataTableField1,Isemirurun,Isemirmalzeme,save,update" onclick="#{rich:component('popup')}.hide()" />
	        </h:panelGrid>
		</a:form>
    </rich:modalPanel>


	 <rich:modalPanel id="popupMalzeme" width="660" height="500" resizeable="false" onmaskclick="#{rich:component('popupMalzeme')}.hide()">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="Malzeme Seçimi"></h:outputText>
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
                <h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelink2"/>
                <rich:componentControl for="popupMalzeme" attachTo="hidelink" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
		
        <h:panelGrid id="seciliUrunBilgisi2">
	        <s:decorate id="kalipekiField2" template="layout/edit.xhtml">
	            <ui:define name="label">Seçili Malzeme</ui:define>
	            <h:outputLabel value="#{isemirhareketHome.instance.isemirmalzeme.malzeme.kod} - #{isemirhareketHome.instance.isemirmalzeme.malzeme.ad}"/>
	        </s:decorate>
        </h:panelGrid>        
       
        <a:form reRender="seciliUrunBilgisi2">
	        <h:panelGrid id="malzemeListesi">
		        	<rich:extendedDataTable rows="10" value="#{isemirhareketHome.malzemesDataModel}" var="isemirmalzeme" id="table2" width="630px" height="350px"
		        		sortMode="#{isemirhareketHome.sortMode2}" selectionMode="#{isemirhareketHome.selectionMode2}" 
		        		tableState="#{isemirhareketHome.tableState2}" selection="#{isemirhareketHome.selection2}">
		        	   	<a:support event="onselectionchange" reRender="seciliUrunBilgisi2,extendedDataTableField2" action="#{isemirhareketHome.takeSelection2()}"/>
		               	<rich:column sortable="true" sortBy="#{isemirmalzeme.malzeme.kod}" id="col_22" 
		               		filterBy="#{isemirmalzeme.malzeme.kod}" filterEvent="onkeyup" width="100px" label="Malzeme Kodu">
		                   	<f:facet name="header">
		                    	<h:outputText value="Malzeme Kodu" id="state_name2"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirmalzeme.malzeme.kod}" id="cap_state2"/>
		               	</rich:column>
		               	<rich:column sortable="true" sortBy="#{isemirmalzeme.malzeme.ad}" id="col_32" 
		               		filterBy="#{isemirmalzeme.malzeme.ad}" filterEvent="onkeyup" width="330px" label="Malzeme Adı">
		                   	<f:facet name="header">
		                    	<h:outputText value="Malzeme Adı" id="state_capital2"/>
		                   	</f:facet> 
		                   	<h:outputText value="#{isemirmalzeme.malzeme.ad}" id="cap_name2"/>
		               	</rich:column>		    
						<rich:column sortable="true" sortBy="#{isemirmalzeme.makskullanimmiktari}" id="col_42" 
		               		filterBy="#{isemirmalzeme.makskullanimmiktari}" filterEvent="onkeyup" width="100px" label="Max.Kul. Miktarı">
		                   	<f:facet name="header">
		                    	<h:outputText value="Max.Kul. Miktarı" id="maxmiktarouttext"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirmalzeme.makskullanimmiktari}" id="max_miktar"/>
		               	</rich:column>
		               	<rich:column sortable="true" sortBy="#{isemirmalzeme.miktar}" id="col_52" 
		               		filterBy="#{isemirmalzeme.miktar}" filterEvent="onkeyup" width="100px" label="Miktar">
		                   	<f:facet name="header">
		                    	<h:outputText value="Miktar" id="miktarouttext2"/>
		                   	</f:facet>
		                   	<h:outputText value="#{isemirmalzeme.miktar}" id="miktar2"/>
		               	</rich:column>
		               	           	
		           	</rich:extendedDataTable>
	           <rich:datascroller for="table2" maxPages="5"/>
	        </h:panelGrid>
	        
	        <h:panelGrid columns="2" style="margin-left: 37%;" >
	        	<a:commandButton value="Tamam" style=" width : 60px;" action="#{isemirhareketHome.takeSelection2()}" reRender="seciliUrunBilgisi2,extendedDataTableField2,Isemirurun,Isemirmalzeme,save,update" onclick="#{rich:component('popupMalzeme')}.hide()"/>
	        	<a:commandButton value="İptal" style=" width : 60px;" action="#{isemirhareketHome.clearSelectedMalzeme()}" reRender="seciliUrunBilgisi2,extendedDataTableField2,Isemirurun,Isemirmalzeme,save,update" onclick="#{rich:component('popupMalzeme')}.hide()" />
	        </h:panelGrid>
		</a:form>
    </rich:modalPanel>
    
</ui:define>

</ui:composition>
